package day0306;

import java.io.File;
import java.io.IOException;

public class Test02 {
    public static void main(String[] args) {
        for (int i=1;i<=100;i++){
            File file = new File(i+".txt");
            if (file.exists()){
                file.delete();
                System.out.println("文件删除");
            }else {

                System.out.println("文件不存在");
            }
        }
    }
}
